package com.bus.core.events.product;

import com.bus.core.events.RemoteBusEvent;
import lombok.Data;
import lombok.EqualsAndHashCode;


@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper=false)
public class ProductRemoteEvent extends RemoteBusEvent {

    private final String productId;

    public ProductRemoteEvent(Object source, String originService, String destinationService, String productId) {
        super(source, originService, destinationService);
        this.productId = productId;
    }

    public ProductRemoteEvent(Object source, String originService, String orderNo) {
        this(source, originService, null,orderNo);
    }
}